declare interface Window {
  readonly webkit: any;
  readonly bridge: any;
  recordDataHandler: (params: string) => void;
  receiveTokenHandle: (params: string) => void;
  receiveRoomIdHandle: (params: string) => void;

  /* 客户端桥接 */
  readonly common: any;

  /* 客服信息挂载 */
  readonly qimoChatClick: any;
  qimoClientId: any;
  readonly qimosdk: any;
  readonly qimoChatLoaded: any;
}

declare type TokenStatus = {
  token: string;
};

declare type IDStatus = {
  room_id: string;
};

declare class ObsClient {
  constructor(options?: any);

  [key: string]: any;
}

declare type Result<T> = {
  code: number;
  data: T;
  message?: string;
};
